import request from '@/utils/request'

// 查询层格列表
export function listBasGrid(query) {
  return request({
    url: '/bas/basGrid/list',
    method: 'get',
    params: query
  })
}

// 查询层格详细
export function getBasGrid(gridId) {
  return request({
    url: '/bas/basGrid/' + gridId,
    method: 'get'
  })
}

// 新增层格
export function addBasGrid(data) {
  return request({
    url: '/bas/basGrid',
    method: 'post',
    data: data
  })
}

// 修改层格
export function updateBasGrid(data) {
  return request({
    url: '/bas/basGrid',
    method: 'put',
    data: data
  })
}

// 删除层格
export function delBasGrid(gridId) {
  return request({
    url: '/bas/basGrid/' + gridId,
    method: 'delete'
  })
}
